package dp.gr03.payroll.methodTransactions;

import dp.gr03.payroll.methods.DirectMethod;
import dp.gr03.payroll.payrollDomain.PaymentMethod;

public class ChangeDirectTransaction extends ChangeMethodTransaction
{
    private String bank;
    private String account;
    
    public ChangeDirectTransaction(int empId, String bank, String account)
    {
        super(empId);
        this.bank = bank;
        this.account = account;
    }

    @Override
    public PaymentMethod getPaymentMethod()
    {
        return new DirectMethod(bank, account);
    }

}
